package 单例模式;

// 饿汉式
public class Singletone {

    private static Singletone instance = new Singletone();

    private Singletone(){}

    public static Singletone getInstance(){
        return instance;
    }
}
